package com.ad.pet.app.mall;

import com.ad.pet.common.structure.mvp.AbsView;
import com.ad.pet.common.structure.mvp.BasePresenter;
import com.ad.pet.models.remote.CommList;
import com.ad.pet.models.remote.User;
import com.ad.pet.models.remote.cart.Good;
import com.ad.pet.models.remote.mall.ProductDetail;
import com.ad.pet.models.remote.mall.Rating;
import com.ad.pet.models.remote.mall.Record;

import java.util.List;

/**
 * Created by SEELE on 2018/3/27.
 */

public interface MallContracts  {

    interface Presenter extends BasePresenter<View> {

        void getGoodDetail(String product_id);
        void getRateList(String product_id,String page,String size);
        void getSaleRecord(String product_id,String page,String size);
        void addToCart(String pid,String number,String sku,String storId);
        void getFlashList();


    }

    interface View extends AbsView {
        void getGoodDetailSuceess(ProductDetail productDetail);
        void getRateListSuccess(List<Rating> ratings);
        void getSaleRecordSuccess(List<Record> records);
        void addToCartSuccess(User user);
        void getFlashListSuccess(CommList<List<Good>> commList);

    }
}
